/*
 * regex.cpp
 *
 *  Created on: Aug 16, 2012
 *      Author: jh238d
 */

/*#include <regex>
#include <string>
#include <iostream>
using namespace std;
//using namespace regex_constants;

int main(){
	if(regex_match("subject", regex("(sub)(.*)")))
		cout<<"matched!"<<endl;

	string s("subject");
	regex e("(sub).*");
	if(regex_match(s,e))
		cout << "matched!" << endl;

	string s1("This is a great story.");
	smatch sm;
	regex e1("\\w");
	if(regex_match(s1,sm,e1))
		cout<<sm.size()<<"matched!"<<endl;
	for(int i=0;i<sm.size();i++)
		cout<<sm[i]<<" ";
	cout<<endl;

	return 0;
}*/
